package com.xidian.zhiancloud.service.user;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xidian.zhiancloud.dao.syset.SysHomeRiskDisplaySettingsMapper;
import com.xidian.zhiancloud.model.syset.SysHomeRiskDisplaySettingsList;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * 首页风险显示设置
 */
@Service
public class SysHomeRiskDisplaySettingsService extends ServiceImpl<SysHomeRiskDisplaySettingsMapper,SysHomeRiskDisplaySettingsList> {

    @Autowired
    SysHomeRiskDisplaySettingsMapper sysHomeRiskDisplaySettingsMapper;

    public SysHomeRiskDisplaySettingsList selecthomeRiskDisplaySettingsList
            (Long companyId){
        return sysHomeRiskDisplaySettingsMapper.
                selecthomeRiskDisplaySettingsList(companyId);
    }

    public int updatehomeRiskDisplaySettings(Long companyId,String id,
           Integer homeCorporateRisk,Integer homeCorporateRiskChangeTrend){
        return sysHomeRiskDisplaySettingsMapper.updatehomeRiskDisplaySettings
               (companyId,id,homeCorporateRisk,homeCorporateRiskChangeTrend);
    }

}
